package com.baizhiedu.basic.filter;


import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * @Author: robert.song
 * @Date: Created in 2022/6/3
 */

public class DemoFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("test");
        filterChain.doFilter(servletRequest, servletResponse);
        System.out.println("test");
    }

    @Override
    public void destroy() {

    }
}
